package com.example.springstack.springsecurity.service;

import org.springframework.http.HttpRequest;
import org.springframework.security.core.Authentication;

import javax.servlet.http.HttpServletRequest;

/**
 * @author qiangfanghao
 * @date
 */
public interface MyAccess {

    /**
     * 自定义 判断 用户是否有 url的权限
     * @param request
     * @param authentication
     * @return
     */
    boolean hasPermission(HttpServletRequest request, Authentication authentication);

}
